package com.guo.pet_store.admin.dao;

import com.guo.pet_store.admin.pojo.Order;
import com.guo.pet_store.admin.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface OrderRepository extends JpaRepository<Order,Long> {
    List<Order> findOrdersByUser(User user);
}
